package com.xju.service.impl;

import com.xju.common.utils.PageInfo;
import com.xju.dao.BookDao;
import com.xju.entity.Books;
import com.xju.service.BookService;

public class BookServiceImpl implements BookService {
    BookDao bookDao=new BookDao();
    @Override
    public PageInfo<Books> pageList(int pageNo, int pageSize,String key) {
        //调用dao
        return bookDao.pageList(pageNo,pageSize,key);
    }

    @Override
    public void insert(String title, String authorName, String isbn, String publisher, String publicationDate, String flag) {
        bookDao.insert(title,authorName,isbn,publisher,publicationDate,flag);
    }

    @Override
    public Books getOne(String bookID) {

        return bookDao.getOne(bookID);
    }

    @Override
    public void updataByBookID(String bookID, String title, String authorName, String isbn, String publisher, String publicationDate, String flag) {
        bookDao.updataByBookID(bookID, title, authorName, isbn, publisher, publicationDate, flag);
    }

 
    @Override
    public void delete(String bookID) {
        bookDao.delete(bookID);
    }


}
